package com.lkd.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lkd.dao.VmPolicyDao;
import com.lkd.entity.VmPolicyEntity;
import com.lkd.service.VmPolicyService;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 */
@Service
public class VmPolicyServiceImpl extends ServiceImpl<VmPolicyDao,VmPolicyEntity> implements VmPolicyService{
    /**
     * 根据id查看折扣信息
     *
     * @param skuId
     */
    @Override
    public Integer getDiscount(Long skuId) {
        Integer discount = getById(skuId).getDiscount();
        return discount;
    }
}
